package com.jiangcheng.demo.utils;

import lombok.Data;
import org.springframework.stereotype.Component;

@Data
public class NewResult {
    private int state;
    private Boolean success;
    private String msg;
    private Object data;

    public NewResult(int state, Boolean success, String msg) {
        this.state = state;
        this.success = success;
        this.msg = msg;
    }

    public NewResult(int state, Boolean success, String msg,Object data) {
        this.state = state;
        this.success = success;
        this.msg = msg;
        this.data = data;
    }

}

